Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

156
Visualizações
HTMLunit-"Error: [MobX] Proxy not available"

I am trying to use htmlunit to get data from a javascript website. Currently, I am solely trying to call the site with webClient.getPage, which is already throwing an exception.

    public static void main(String[] args) throws Exception {

        final WebClient webClient = new WebClient();

    webClient.getOptions().setThrowExceptionOnScriptError(false);
    webClient.setJavaScriptTimeout(10000);
    webClient.getOptions().setJavaScriptEnabled(true);
    webClient.setAjaxController(new NicelyResynchronizingAjaxController());
    webClient.getOptions().setTimeout(10000);

    final HtmlPage page1 = webClient.getPage("[my-site-url-here]");


}

I am getting the following exception:

    ======= EXCEPTION START ========
Exception class=[net.sourceforge.htmlunit.corejs.javascript.JavaScriptException]
com.gargoylesoftware.htmlunit.ScriptException: Error: [MobX] Proxy not available (https://[my-site-here]/static/js/8.107d4023.chunk.js#1)

As seen in my code snippet, I have already applied options observed in other threads regarding js errors when using htmlunit. I am not using a proxy, the website is using cloudflare. Could this be the problem? Thank you in advance.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

[MobX] Proxy not available

looks like the js code notices the (currently) missing Proxy support in HtmlUnit/Rhino's javascript engine. Usually pages doing some js feature checks in the beginning and reporting problems (or even better using only the available features).

Please open an issue for HtmlUnit and if possible include the page url to help us to reproduce the problem.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda